
import React from 'react';
import styles from './Empty.module.scss';
import empty from "@/assets/image/empty-bg.png"


const Empty: React.FC<{
    title?: string,
    hasBorder?: boolean
}> = (props) => {
    const { title, hasBorder } = props

    return (
        <div className={styles['empty-block']} style={{ "border": hasBorder ? '1px solid #f6f7f8' : null } as React.CSSProperties}>
            {title && <h3 className={styles['tit']}>{title}</h3>}
            <div className={styles['empty-cont']}>
                <img className={styles['pos-img']} src={empty} alt="" />
                <span className={styles['tips-text']}>暂无数据</span>
            </div>
        </div>
    )
}

export default Empty
